/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cubelabs.nexus.entity;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *
 * @author chaitanya
 */

@Entity
@Table(name="institute")
public class Institute extends BaseEntity{
		private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private  Long id;
	@ManyToOne
	private User dean;
	@ManyToMany
	Set<User> students;
	@ManyToMany
	Set<User> teachers;
	String logURL;
	
	@ManyToMany 
	Set<Plugins> pluginSubscriptions;
	public Set<Plugins> getPluginSubscriptions() {
		return pluginSubscriptions;
	}

	public void setPluginSubscriptions(Set<Plugins> pluginSubscriptions) {
		this.pluginSubscriptions = pluginSubscriptions;
	}

	public String getLogURL() {
		return logURL;
	}

	public void setLogURL(String logURL) {
		this.logURL = logURL;
	}

	public Set<User> getTeachers() {
		return teachers;
	}

	public void setTeachers(Set<User> teachers) {
		this.teachers = teachers;
	}

	public Set<User> getStudents() {
		return students;
	}

	public void setStudents(Set<User> students) {
		this.students = students;
	}

	private String institueName;
	private String aboutUs;
	private String logo;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return dean;
	}

	public void setUser(User user) {
		this.dean = user;
	}

	public String getInstitueName() {
		return institueName;
	}

	public void setInstitueName(String institueName) {
		this.institueName = institueName;
	}

	public String getAboutUs() {
		return aboutUs;
	}

	public void setAboutUs(String aboutUs) {
		this.aboutUs = aboutUs;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public User getDean() {
		return dean;
	}

	public void setDean(User dean) {
		this.dean = dean;
	}
	
}
